package com.pxst.fx.req;

import com.pxst.entity.Insert;
import com.pxst.req.BasePageRsp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class SysFxOrderChildReq extends BasePageRsp {

    /**
     * sys_available_bank id
     */
    @ApiModelProperty(value = "系统可用银行Id")
    private Integer bkId;

    /**
     * sys_merchant_info
     */
    @ApiModelProperty(value = "商户Id")
    private List<String> shId;

    /**
     * 5选1
     */

    /**
     * sys_fx_order id
     */
    @ApiModelProperty(value = "5选1 主ID")
    private String fxAltId;

    /**
     * sys_fx_order_child id
     */
    @ApiModelProperty(value = "5选1 子Id")
    private String fxChildAltId;

    // sys_fx_order reference
    @ApiModelProperty("参考编号")
    private String reference;

    @ApiModelProperty(value = "5选1 账户代码")
    private String from;

    @ApiModelProperty(value = "5选1 To")
    private String to;

//    @ApiModelProperty(value = "受益人")
//    private String beneficiary;


    @NotBlank(message = "币种不能为空")
    @ApiModelProperty(value = "币种", required = true)
    private String currency;

    /**
     * 1.等待
     * 2.正在操作
     * 3.交易成功
     * 4.等待失败后手工操作
     * 5.失败，不可更改状态
     */
    @ApiModelProperty(value = "讯银回传状态")
    private List<Integer> status;

    @ApiModelProperty(value = "附言")
    private List<String> postscript;

    /**
     * sys_fx_order_child txn_mode
     */
    @ApiModelProperty(value = "交易种类")
    private List<String> tpiTxnMode;

    /**
     * sys_fx_order_child vnd_payment_method
     */
    @ApiModelProperty(value = "VND 出款方式")
    private List<String> vndPaymentMethod;

    /**
     * sys_fx_order_child vnd_opt
     */
    @ApiModelProperty(value = "OTP Method")
    private List<String> vndOtp;

    /**
     * sys_bank_card_group id
     */
    @ApiModelProperty(value = "银行卡群ID")
    private List<String> pgId;


    @ApiModelProperty(value = "起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;


    @ApiModelProperty(value = "开始更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedStartDate;

    @ApiModelProperty(value = "最后更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedEndDate;


}
